﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xwork.SEO.Providers
{
    public class SearchResult
    {
        public bool Found { get; set; }

        public int Index { get; set; }

        public int PageIndex
        {
            get
            {
                return Found ? (Index > 10 ? 2 : 1) : -1;
            }
        }

        public int RowIndex
        {
            get
            {
                return Found ? (Index > 10 ? Index - 10 : Index) : -1;
            }
        }
    }
}
